import re

res=[]


f= open("o4").readlines()
for i in f:
    result2 = re.findall('[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}', i)
    for j in result2:
        res.append(j+"\n")


w=open("ip",'a+')
w.writelines(res)
print("done")


